import Layout from '@/layout'

const router = {
  path: '',
  component: Layout,
  redirect: '/index',
  name: 'Index',
  children: [{
    path: 'index',
    hidden: false,
    component: () => import('@/views/HomePage/Home'),
    meta: {
      ctitle: '首页',
      icon: 'index',
      noCache: true,
      affix: true
    }
  }, {
    path: 'ProgressStatistics',
    meta: {
      ctitle: '进度统计',
      icon: 'count-title',
      noCache: true,
      affix: true
    },
    component: () => import('@/views/blank'),
    children: [{
      path: 'CompanyStatistics',
      component: () => import('@/views/HomePage/ProgressStatistics'),
      meta: {
        ctitle: '进度查询',
        icon: 'count-title'
      }
    }, {
      path: 'CompanyProgress',
      component: () => import('@/views/HomePage/ProgressStatistics/CompanyProgress'),
      meta: {
        ctitle: '指标监测',
        icon: 'count-title'
      }
    }]
  },
  {
    path: 'documentAndNotice',
    component: () => import('@/views/HomePage/DocumentAndNotice'),
    meta: {
      ctitle: '文件通知',
      icon: 'notice'
    }
  }, {
    path: 'DocumentAndNotice/notice/viewer',
    name: 'viewer',
    hidden: true,
    component: () => import('@/views/HomePage/DocumentAndNotice/notice/viewer'),
    meta: {
      ctitle: '通知详情',
      icon: 'exam',
      activeMenu: '@/views/HomePage/DocumentAndNotice/notice'
    }
  }, {
    path: 'reward',
    component: () => import('@/views/HomePage/Reward'),
    meta: {
      ctitle: '奖励表彰',
      icon: 'party-pioneer'
    }
  }, {
    path: 'indicatorManage',
    component: () => import('@/views/HomePage/IndicatorManage'),
    meta: {
      ctitle: '指标管理',
      icon: 'document'
    }
  }, {
    path: 'backManage',
    component: () => import('@/views/HomePage/BackManage'),
    meta: {
      ctitle: '后台管理',
      icon: 'backgroundmanage'
    }
  }, {
    path: 'backManage/extendTypesManage',
    component: () => import('@/views/HomePage/BackManage/ExtendTypesManage'),
    hidden: true,
    meta: {
      ctitle: '拓展字段管理',
      icon: 'backgroundmanage'
    }
  }, {
    path: 'backManage/companyManage',
    name: 'companyManage',
    hidden: true,
    component: () => import('@/views/HomePage/BackManage/CompanyManage'),
    meta: {
      ctitle: '党组织管理',
      icon: 'exam',
      activeMenu: '@/views/HomePage/BackManage'
    }
  }, {
    path: 'backManage/rewardManage',
    name: 'rewardManage',
    hidden: true,
    component: () => import('@/views/HomePage/BackManage/RewardManage'),
    meta: {
      ctitle: '奖励表彰管理',
      icon: 'exam',
      activeMenu: '@/views/HomePage/BackManage'
    }
  }, {
    path: 'backManage/NoticeTypeManage',
    name: 'NoticeTypeManage',
    hidden: true,
    component: () => import('@/views/HomePage/BackManage/NoticeTypeManage'),
    meta: {
      ctitle: '通知&&文件类型管理',
      icon: 'exam',
      activeMenu: '@/views/HomePage/BackManage'
    }
  }, {
    path: 'backManage/conferInfo',
    name: 'conferInfo',
    hidden: true,
    component: () => import('@/views/HomePage/BackManage/ConferInfo'),
    meta: {
      ctitle: '会议信息管理',
      icon: 'exam',
      activeMenu: '@/views/HomePage/BackManage'
    }
  }
  ],
  meta: {
    ctitle: '首页',
    icon: 'index',
  }

}

export default router
